import {host} from './util/host'
export const bookshelf = host + '/static/image/bookself.png';
export const bookshelfActive = host + '/static/image/bookself-a.png';
export const bookstore = host + '/static/image/bookstore.png';
export const bookstoreActive = host + '/static/image/bookstore-a.png';
export const rank = host + '/static/image/rank.png';
export const rankActive = host + '/static/image/rank-a.png';
export const sort = host + '/static/image/sort.png';
export const sortActive = host + '/static/image/sort-a.png';
export const search_icon = host + '/static/image/search.png';
export const author_icon = host + '/static/image/author.png';
export const close_icon = host + '/static/image/close.png';

// 历史记录
export const delete_icon = host + '/static/image/delete.png';

export const left_icon = 'https://gw.alicdn.com/tfs/TB1x18VpwMPMeJjy1XdXXasrXXa-21-36.png';
export const icon_font = host + '/static/font/iconfont.ttf';


const image_host = 'http://statics.zhuishushenqi.com';

export const book_default_img = host + '/static/image/book-default.jpg';

export const getImageUrl = function (value) {
    if(isRealImageUrl(value)){
        return value
    }
    return image_host + value;
};

export const isRealImageUrl = function (value) {
    return value.indexOf(image_host) > -1;
};
